﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using NAudio;
using NAudio.Wave;

namespace WebcamMusic
{
    class EffectStream : WaveStream
    {
        public WaveStream source
        {
            get;
            set;
        }

        public EffectStream(WaveStream stream)
        {
            source = stream;
        }

        public override long Length
        {
            get { return source.Length; }
        }

        public override long Position
        {
            get { return source.Position; }
            set { source.Position = value; }
        }

        public override WaveFormat WaveFormat
        {
            get { return source.WaveFormat; }
        }

        public override int Read(byte[] buffer, int offset, int count)
        {
            return source.Read(buffer, offset, count);
        }
    }
}
